﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace LEDScreenLinkTool.Util
{
    public static class AppInfoInstance
    {
        static List<ModuleSize> moduleList = new List<ModuleSize>();
        static bool IsTestMode = false;
        public static void SetTestMode(bool isTest)
        {
            IsTestMode = isTest;
        }

        public static bool GetTestMode()
        {
            return IsTestMode;
        }

        public static void SetModuleList(List<ModuleSize> modList)
        {
            moduleList = modList;
        }

        public static List<ModuleSize> GetModuleList()
        {
            return moduleList;
        }
    }

    public class ModuleOption
    {
        public List<ModuleSize> Modules { get; set; }


        public bool TestMode { get; set; }
    }
    public class ModuleSize
    {
        public string Name { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
    }


}
